using System;
using System.Collections;

namespace com.exceptionalsoftware.spacetime.KML
{
	public class FeatureList
	{
		private ArrayList featureList;

        public FeatureList()
		{
            this.featureList = new ArrayList();
		}

        public FeatureList(Feature[] features)
        {
            this.featureList = new ArrayList(features);
        }

        public int Count
        {
            get { return this.featureList.Count; }
        }

        public Feature this[int index]
        {
            get { return (Feature)this.featureList[index]; }
        }

        public void Clear()
        {
            this.featureList.Clear();
        }

        public void Add(Feature f)
        {
            this.featureList.Add(f);
        }

        public void Remove(Feature f)
        {
            this.featureList.Remove(f);
        }

        public Feature[] ToArray()
        {
            return (Feature[])this.featureList.ToArray(typeof(Feature));
        }
    }
}